import request from '@/config/axios'

const BASE_URL = '/eacom-ces/evaluation-template'

/**
 * 添加评分模板
 */
export const addScoringTemplateApi = (data: any) => {
  return request.post({ url: `${BASE_URL}`, data })
}

/**
 * 编辑评分模板
 */
export const editScoringTemplateApi = (data: any) => {
  return request.put({ url: `${BASE_URL}`, data })
}

/**
 * 删除评分模板
 */
export const deleteScoringTemplateApi = (id: number) => {
  return request.delete({ url: `${BASE_URL}/${id}` })
}
